package com.atguigu.common.valid.annotation;

import com.atguigu.common.valid.validator.ListStringValueConstrainValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author: Mr.ling
 * @data: 2022/7/9
 * @apiNote
 */
@Documented
@Constraint(
        validatedBy = {ListStringValueConstrainValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ListStringValue {
    String message() default "{com.atguigu.common.valid.annotation.ListStringValue.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    String[] args() default { };
}
